//
//  ViewController.swift
//  SwiftAndOC
//
//  Created by mac on 17/1/25.
//  Copyright © 2017年 马俊凯. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    var _mjkTitleView: MJKTitleView?
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        //使用Swift语法调用OC初始化方法
        _mjkTitleView = MJKTitleView.init(frame: CGRectMake(0, 20, self.view.frame.size.width, 44), andItemNames: ["财经","科技","电子","通讯","新闻","项目信息","企业聚焦","公司形象","推送消息","专题","报表","领导状态","行业信息"])
        _mjkTitleView?.btnClickWithBlock({ (a:Int) -> Void in
            print("index -- \(a)")
        })
        self.view.addSubview(_mjkTitleView!)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

